package com.lakeworks.web.controller.ticket;

import com.lakeworks.common.core.controller.BaseController;
import com.lakeworks.common.core.domain.AjaxResult;
import com.lakeworks.common.domain.ticket.TktFlow;
import com.lakeworks.service.ITktFlowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 流程定义Controller
 *
 * @author lake
 * @date 2023-07-17
 */
@RestController
@RequestMapping("/flow")
public class TktFlowController extends BaseController {

    @Autowired
    private ITktFlowService tktFlowService;

    @GetMapping("/list")
    public AjaxResult getFlowList(){
        return AjaxResult.success(tktFlowService.selectTktFlowList(new TktFlow()));
    }

}
